package tech.eyao.hs60x.converts;

import tech.eyao.hs60x.co.LbsCo;
import tech.eyao.hs60x.dto.LbsDTO;

public class LbsConvert {

	public static LbsDTO convert(LbsCo lbsCo,String electricity) {
		if(null == lbsCo) return null;
		LbsDTO lbsDTO = new LbsDTO();
		lbsDTO.lastDate = lbsCo.lastDate;
		lbsDTO.latitude = lbsCo.latitude;
		lbsDTO.longitude = lbsCo.longitude;
		lbsDTO.accuracy = lbsCo.accuracy;
		lbsDTO.type = lbsCo.type;
		lbsDTO.address1 = lbsCo.address1;
		lbsDTO.address2 = lbsCo.address2;
		lbsDTO.electricity = electricity;
		return lbsDTO;
	}
}
